package D5;

public abstract class d {
    public abstract void pay(double amount);
}

public class d extends d {
    @Override
    public void pay(double amount) {
        System.out.println("使用支付宝支付：" + amount + "元");
    }
}

public class Test {
    public static void main(String[] args) {
        AbstractPay pay = new AliPay();
        pay.pay(100.0);
    }
}
